<?php

namespace Admin\Controller;
use Think\Controller;

class CommonController extends Controller{
	public function m(){
		return M(Newborn_list);
	}
	public function detail(){
		return M(Newborn_detail);
	}
	public function succ($WORD){
		echo "<div class=\"main-content\">
				<div class=\"alert alert-block alert-success\" style=\"margin: auto;   >
				<i class=\"icon-ok green\"></i>
				<strong class=\"green\">
				".$WORD."	
				</strong>
				</div>
				</div>";
	}

	public function page($count,$pagelist){
		$Page = new  \Think\Page($count, $pagelist);
		$Page->setConfig('header','<span class="rows">共<b>%TOTAL_ROW%</b>条记录&nbsp;第<b>%NOW_PAGE%</b>页/共<b>%TOTAL_PAGE%</b>页</span>');
		$Page->setConfig('theme', '%FIRST%%UP_PAGE%%LINK_PAGE%%DOWN_PAGE%%END%%HEADER%');
		$Page->setConfig('first','首页');
		$Page->setConfig('last','末页');
		$Page->setConfig('prev','上一页');
		$Page->setConfig('next','下一页');
		
	}
}